# sdk path
SYSROOT = $(shell pwd)/../hmos-third/sdk/sysroot

# 架构
ARCH = aarch64

# 交叉编译器配置,示例: arm-linux-gnueabihf- mips-linux-gnu-
CROSS = aarch64-linux-android-

# 编译器详细配置
GCC = $(CROSS)gcc
GXX = $(CROSS)g++
AR = $(CROSS)ar
AS = $(CROSS)as
NM = $(CROSS)nm
RANLIB = $(CROSS)ranlib
STRIP = $(CROSS)strip
OBJDUMP = $(CROSS)objdump
LD = $(CROSS)ld

# 平台编译项和路径:
EXT_CFLAGS = --target=aarch64-linux-ohos -march=armv8-a --sysroot=$(SYSROOT)
EXT_INCS += -I$(SYSROOT)/usr/include/aarch64-linux-ohos
EXT_LIBS += -L$(SYSROOT)/usr/lib/aarch64-linux-ohos

# 修复找不到-lgcc报错
EXT_LIBS += -L$(shell pwd)/../hmos-third/sdk/aarch64/aarch64-linux-android-4.9/lib/gcc/aarch64-linux-android/4.9.x
